// samsting : this file is auto create.

#include "Push/2015-08-27/BatchGetDevicesInfoResponse.h"

namespace aliyun { namespace Push {

BatchGetDevicesInfoResponse::BatchGetDevicesInfoResponse() {
}

const string& BatchGetDevicesInfoResponse::DeviceInfo::GetDeviceId(void) const {
  return DeviceId_;
}

bool BatchGetDevicesInfoResponse::DeviceInfo::GetIsOnline(void) const {
  return IsOnline_;
}

int BatchGetDevicesInfoResponse::DeviceInfo::GetStatus(void) const {
  return Status_;
}

const std::vector<BatchGetDevicesInfoResponse::DeviceInfo>& BatchGetDevicesInfoResponse::GetDeviceInfos(void) const {
  return DeviceInfos_;
}

const char* BatchGetDevicesInfoResponse::BaseKey(void) {
  return "BatchGetDevicesInfoResponse";
}

void BatchGetDevicesInfoResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int DeviceInfos__length = 0;
  UnmarshallerInt(DeviceInfos__length, response_map, "BatchGetDevicesInfoResponse.DeviceInfos.Length");
  if(DeviceInfos__length >= 0) {
    DeviceInfos_.resize(DeviceInfos__length);
    for(int i1 = 0; i1 < DeviceInfos__length; i1++) {
      UnmarshallerString(DeviceInfos_[i1].DeviceId_, response_map, "BatchGetDevicesInfoResponse.DeviceInfos["+string_ValueOfInt(i1)+"].DeviceId");
      UnmarshallerBool(DeviceInfos_[i1].IsOnline_, response_map, "BatchGetDevicesInfoResponse.DeviceInfos["+string_ValueOfInt(i1)+"].IsOnline");
      UnmarshallerInt(DeviceInfos_[i1].Status_, response_map, "BatchGetDevicesInfoResponse.DeviceInfos["+string_ValueOfInt(i1)+"].Status");
    } // for(int i1 = 0; i1 < DeviceInfos__length; i1++) {
  } // if(DeviceInfos__length >= 0) {

}


} } // namespace aliyun { namespace Push {

// end of file 
